#include<bits/stdc++.h>
using namespace std;

int main()
{
	int n,x;
	cin>>n;
	double pass=0;
	double nice=0;
	for(int i=0;i<n;i++)
	{
		cin>>x;
		if(x>=60)	pass++;
		if(x>=85)	nice++;
	}
	pass=round(pass/n*100);
	nice=round(nice/n*100);
	cout<<pass<<"%"<<'\n';
	cout<<nice<<"%";
 } 
